<?php

namespace apiend\modules\doc\controllers;

use Yii;
use apiend\components\Controller;

/**
 * 相关接口
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class DefaultController extends Controller {

    /**
     * @inheritdoc
     */
    protected function rules() {
        return [
            [
                'allow' => true,
                'roles' => ['@'],
            ],
        ];
    }

    /**
     * @inheritdoc
     */
    protected function verbs() {
        return [
            '*' => ['GET'],
        ];
    }

    /**
     * 首页默认接口
     * @inheritdoc
     */
    public function actionIndex($id = 0) {
        return null;
    }

}
